# 获取长度
s1="zduisfvnuisdf"
print(len(s1))
# 查找内容
s2="zduisfvnuisdf"
print(s2.find("f"))
# 判断开头 结尾
s3="zduisfvnuisdf"
print(s3.startswith("z"))
print(s3.endswith("f"))
# 计算出现次数
s4="zduisfvnuisdf"
print(s4.count("f"))
# 替换内容
s5="zduisfvnuisdf"
str1=s5.replace("d","aaa")
print(str1)
# 切割字符串
s6="zdui111sfv111nui111sdf"
str2=s6.split("111")
print(str2)
# 修改大小写
s7="zduisfvnuisdf"
s8="ASIUFHIUBADCH"
print(s7.upper())
print(s8.lower())
# 空格处理
s9="zdui s fv n u  isdf"
str3=s9.strip()
print(str3)
# 字符串拼接
s10="A"
print(s10.join("aaa"))
